package com.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @author ZhaoJiaDong
 * @version 2020.1
 * @date 2022/11/19 0019 14:41
 */
@Data//get、set方法
@AllArgsConstructor//全参构造
@NoArgsConstructor//空参构造
@ToString//toString
public class Epidemic {
    @TableId(type = IdType.AUTO)
    private Integer id;//记录id
    private String name;//姓名
    private String relationship;//与申请者关系
    private Integer reservation;//是否预约成功
    private String uid;//用户id(外键关联)
    private Integer number;//预约人数
    private Integer health;//是否健康
    private Integer type;//预约类型
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;//创建时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;//修改时间
    private String date;//日期
}
